package wl.webZuoYe4;

public class DoNum {
    public static String fun(String x,String y,String oper){
        int xx=Integer.parseInt(x);
        int yy=Integer.parseInt(y);
        int r=0;
        char op=oper.charAt(0);
        switch(op){
            case '+':r=xx+yy;break;
            case '-':r=xx-yy;break;
            case '*':r=xx*yy;break;
            case '/':r=xx/yy;break;
        }
        return x+oper+y+"="+r;
    }
}